import request from '@/utils/request'

// 查询养护信息列表
export function listMainInfo(query) {
  return request({
    url: '/glyh/mainInfo/list',
    method: 'get',
    params: query
  })
}

// 查询养护信息详细
export function getMainInfo(id) {
  return request({
    url: '/glyh/mainInfo/' + id,
    method: 'get'
  })
}

// 新增养护信息
export function addMainInfo(data) {
  return request({
    url: '/glyh/mainInfo',
    method: 'post',
    data: data
  })
}

// 修改养护信息
export function updateMainInfo(data) {
  return request({
    url: '/glyh/mainInfo',
    method: 'put',
    data: data
  })
}

// 删除养护信息
export function delMainInfo(id) {
  return request({
    url: '/glyh/mainInfo/' + id,
    method: 'delete'
  })
}
